#ifndef __CHELPER_UTILS_GLOG_ADAPTER_H__
#define __CHELPER_UTILS_GLOG_ADAPTER_H__

#include <sys/stat.h>
#include <unistd.h>
#include <iomanip>
#include <iostream>
#include <string>


#include "glog/logging.h"

namespace chelper {
namespace utils {

const static int32_t MAX_BUFFER = 255;
static bool glog_status = false;

void GlogInit(char *arg);

void GlogShutDown();

void CustomPrefix(std::ostream &os, const LogMessageInfo &info, void *);

std::string getCurrentDirName();

bool mkLogDir(std::string path, std::string &logDir);

}  // namespace utils
}  // namespace chelper

#endif  // __CHELPER_UTILS_GLOG_ADAPTER_H__
